ClosableBannerAdEventListener

A listener for receiving notifications during the lifecycle of a banner ad.

The close callback is a part of the closable sticky banner API, which is unstable and has to be enabled explicitly with @OptIn(ClosableStickyApi::class).

Functions

Link copied to clipboard
abstract fun closeBannerAd()

Notifies listener when ad should be closed as a result of user interaction.

Link copied to clipboard
abstract fun onAdClicked()

Called when user clicked on the ad.

Link copied to clipboard
abstract fun onAdFailedToLoad(error: AdRequestError)

Called when an banner ad request failed

Link copied to clipboard
abstract fun onAdLoaded()

Called when an ad is received.

Link copied to clipboard
abstract fun onImpression(impressionData: ImpressionData?)

Called when an impression was observed